#ifndef APP_BSW_H_
#define APP_BSW_H_
#include "Std_Types.h"

typedef union	
{
    uint32 R;
    struct
    {
        uint32  N : 5;
        uint32  year : 7;
        uint32  month : 4;
        uint32  day : 5;
        uint32  hour : 5;
        uint32  minute : 6;
    }B;
}ABI_RTCTime_Type;

typedef struct {
  uint8 year;
  uint8 month;
  uint8 weekday;
  uint8 day;
  uint8 hour;
  uint8 minute;
  uint8 second;
  uint8 resetflag;
  uint8 countdownflag;
  uint8 timevalidflag;
} ABI_RTCType;
extern ABI_RTCType RTC_time;
extern ABI_RTCTime_Type RTC_time_value;
//extern EepDataType EepData;
void NVM_Read(void);
void NVM_Write(void);
void RTC_Updata(void);

#endif
